#include "loginwidget.h"
#include "myconfig.h"
#include <QApplication>
#include "../MyTcp2/tcpsession.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MyConfig::init();

    QFile file(":/style.css");
    file.open(QFile::ReadOnly);
    a.setStyleSheet(QString::fromLocal8Bit(file.readAll()));
    file.close();

    TcpSession* session=TcpSession::getInstance(MyConfig::getHost(), MyConfig::getPort());
    LoginWidget w(session);
    w.show();
    return a.exec();
}
